package com.edu.exam.enums.examination.online.technical;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 插件状态枚举
 */
public enum PluginStatus implements BaseEnum {
    INSTALLED("INSTALLED", "已安装"),
    LOADED("LOADED", "已加载"),
    RUNNING("RUNNING", "运行中"),
    STOPPED("STOPPED", "已停止"),
    ERROR("ERROR", "错误"),
    DISABLED("DISABLED", "已禁用"),
    ENABLED("ENABLED", "已启用"),
    UPDATING("UPDATING", "更新中"),
    UNINSTALLING("UNINSTALLING", "卸载中"),
    DEPRECATED("DEPRECATED", "已废弃"),
    BETA("BETA", "测试版"),
    STABLE("STABLE", "稳定版"),
    EXPERIMENTAL("EXPERIMENTAL", "实验版"),
    MAINTENANCE("MAINTENANCE", "维护中"),
    OFFLINE("OFFLINE", "离线"),
    ONLINE("ONLINE", "在线"),
    SUSPENDED("SUSPENDED", "已暂停"),
    RESTARTING("RESTARTING", "重启中"),
    FAILED("FAILED", "失败"),
    UNKNOWN("UNKNOWN", "未知");

    private final String code;
    private final String description;

    PluginStatus(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
